{/* LAYOUT模板 */}
	<layout name="layout"/>
{/* LAYOUT模板 */}
{/* import Js,Css */}
	<js href="__PUBLIC__/js/admin/listTable.js"/>
	<css href="__PUBLIC__/css/admin/admin.css"/>	
	<css href="__PUBLIC__/css/jquery-ui.css" />
	<js href="__PUBLIC__/js/core/jquery-ui.1.10.4.js" />
	<js href="__PUBLIC__/js/core/plugins.js"/>
{/* import js,css */}

<!-- [position] -->
	<include file="Template:position"/>
<!-- [position] -->

<style>
.add-brand-table tbody tr{height:35px;}
</style>

<div class="main-div">
	<form method="post" action="__URL__/mod_brand_ok" name="theForm" enctype="multipart/form-data" onsubmit="return validate()">
		<table class="add-brand-table" cellspacing="1" cellpadding="3" width="100%">
			<tbody>
				<tr>
					<td class="label">品牌名称&nbsp;&nbsp;</td>
					<td>
						<input type="text" name="brand_name" maxlength="60" value="{$brand.brand_name}"><span class="require-field">*</span>
					</td>
				</tr>
				<tr>	
					<td class="label">品牌网址&nbsp;&nbsp;</td>
					<td>
						<input type="text" name="site_url" maxlength="60" size="40" value="{$brand.site_url}">
					</td>
				</tr>
				<tr>
					<td class="label">
						<a href="javascript:showNotice('warn_brandlogo');" title="点击此处查看提示信息">
							<img src="__PUBLIC__/image/admin/notice.gif" width="16" height="16" border="0" alt="点击此处查看提示信息">
						</a>
						品牌LOGO&nbsp;&nbsp;
					</td>
					<td>
						<if condition="$brand['brand_logo'] neq ''">
							<img src="__UPLOAD__/images/{$brand.brand_logo}"/>
						</if>
						<input type="file" name="brand_logo" id="logo" size="45">    
						<br/>
						<span class="notice-span" style="display:block" id="warn_brandlogo">
							请上传图片，做为品牌的LOGO！       
						</span>
					</td>
				</tr>
				<tr>
					<td class="label">品牌描述&nbsp;&nbsp;</td>
					<td><textarea name="brand_desc" cols="60" rows="4">{$brand.brand_desc}</textarea></td>
				</tr>
				<tr>
					<td class="label">排序&nbsp;&nbsp;</td>
					<td><input type="text" name="sort_order" maxlength="40" size="15" value="{$brand.sort_order}"></td>
				</tr>
				<tr>
					<td class="label">是否显示&nbsp;&nbsp;</td>
					<td>
						<input type="radio" name="is_show" value="1" <if condition="$brand['is_show'] eq 1">checked="checked"</if>> 是        
						<input type="radio" name="is_show" value="0" <if condition="$brand['is_show'] eq 0">checked="checked"</if>> 否        
						(当品牌下还没有商品的时候，首页及分类页的品牌区将不会显示该品牌。)
					</td>
				</tr>
				<tr>
					<td colspan="2" align="center">
						<br>
						<input type="submit" class="qs-btn" value=" 确定 ">
						<input type="reset" class="qs-btn" value=" 重置 ">
						<input type="hidden" name="act" value="{$form_act}">
						<input type="hidden" name="old_brandname" value="{$brand.brand_name}">
						<input type="hidden" name="id" value="{$brand.brand_id}">
						<input type="hidden" name="old_brandlogo" value="{$brand.brand_logo}">
					</td>
				</tr>
			</tbody>
		</table>
	</form>
</div>